#pragma once

#include <vector>
#include <string>

using namespace std;

//A FileLine is a representation of a line in a file, as read or written by the FileIO class
struct FileLine
{
	vector<string> tokens;
};

//The FileIO class reads/writes to files but doesn't know anything about the rest of the game
//It the the responsibility of the ResourceManager to supply it with the data it needs
class FileIO
{
private: 
	static const char mTokenEnd = ';';
	static const char mLineEnd = '~';
public:
	static bool LoadFile(vector<FileLine*> &data, const char* fileName);
	static bool SaveFile(const vector<FileLine*> data, const char* fileName);
};
